package com.bgrc.hubu12305.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bgrc.hubu12305.entity.ParkingStationEntity;
import com.bgrc.hubu12305.entity.TimeVO;
import com.bgrc.hubu12305.vo.TrainQueryReturnVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 包名:com.bgrc.hubu12305.dao
 * 用户:86182
 * 时间:2021120:372021/12/16
 */
@Mapper
public interface ParkingStationDao extends BaseMapper<ParkingStationEntity> {

    /**
     * 根据出发站和到达站查询出车次详情
     * */
    List<ParkingStationEntity> queryStartStationList(String stationName);

    /**
     * 根据目的站和列车编号查询出目的站信息
     * */
    ParkingStationEntity queryEndStationList(String trainNumber,String stationName,Integer distance );

    TimeVO selectTimebyId();

    Integer isExist(String trainNo,String stationNo);
}
